.class Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay$1;
.super Ljava/lang/Object;
.source "ShowOnMapActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;->onTap([Lcom/htc/android/footprints/vo/Footprint;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

.field final synthetic val$footprints:[Lcom/htc/android/footprints/vo/Footprint;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;[Lcom/htc/android/footprints/vo/Footprint;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 410
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay$1;->this$1:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    iput-object p2, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay$1;->val$footprints:[Lcom/htc/android/footprints/vo/Footprint;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 6
    .parameter "dialog"
    .parameter "which"

    .prologue
    const-string v5, "EXTRA_SORT_BY"

    const-string v4, "EXTRA_CATEGORY"

    .line 411
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay$1;->this$1:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    iget-object v2, v2, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;->this$0:Lcom/htc/android/footprints/activity/ShowOnMapActivity;

    invoke-virtual {v2}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 412
    .local v0, activityIntent:Landroid/content/Intent;
    new-instance v1, Landroid/content/Intent;

    const-string v2, "com.htc.android.footprints.activity.DetailViewActivity"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 414
    .local v1, intent:Landroid/content/Intent;
    const-string v2, "DATA"

    iget-object v3, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay$1;->val$footprints:[Lcom/htc/android/footprints/vo/Footprint;

    aget-object v3, v3, p2

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 416
    const-string v2, "EXTRA_SORT_BY"

    const-string v2, "EXTRA_SORT_BY"

    invoke-virtual {v0, v5}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v5, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 419
    const-string v2, "EXTRA_CATEGORY"

    const-string v2, "EXTRA_CATEGORY"

    invoke-virtual {v0, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v4, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 423
    const/high16 v2, 0x40

    invoke-virtual {v1, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 424
    const/high16 v2, 0x400

    invoke-virtual {v1, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 425
    const-string v2, "EXTRA_SORT_BY"

    const-string v2, "create_time desc"

    invoke-virtual {v1, v5, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 427
    const-string v2, "EXTRA_CATEGORY"

    invoke-static {}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->access$400()Lcom/htc/android/footprints/vo/Category;

    move-result-object v2

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v1, v4, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 429
    const-string v2, "EXTRA_ITEM_IDX"

    const/4 v3, -0x1

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 431
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay$1;->this$1:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    iget-object v2, v2, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;->this$0:Lcom/htc/android/footprints/activity/ShowOnMapActivity;

    invoke-virtual {v2, v1}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->startActivity(Landroid/content/Intent;)V

    .line 432
    return-void
.end method
